package com.gangwangchina.android.loveynotify;

import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.SystemClock;
import android.widget.Toast;

public class BroadcastReceivers extends BroadcastReceiver {

	private static final String mActionBootCompleted = "android.intent.action.BOOT_COMPLETED";

	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO Auto-generated method stub
		String actionString = intent.getAction();
		if (actionString.equals(actionString)) {
//			Intent myintent = new Intent(context, Service.class);
//			myintent.setAction("com.gangwangchina.Service");
//			context.startService(myintent);
//			Toast.makeText(context, "启动服务了", Toast.LENGTH_LONG);
			
//			
			Intent i = new Intent(context, LoveyNotifyActivity.class);  
            i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);  
            context.startActivity(i);  

		} else {

		}
	}

}
